package com.wing.product.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wing.product.dao.ProOutsourcingOrderProductDetailDao;
import com.wing.product.model.entity.ProOutsourcingOrderProductDetail;
import com.wing.product.model.response.ProOutsourcingOrderProductDetailGroupVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;


/**
 * 委外订单
 * @author hz
 */
@Service
@Slf4j
public class ProOutsourcingOrderProductDetailServiceImpl extends ServiceImpl<ProOutsourcingOrderProductDetailDao, ProOutsourcingOrderProductDetail> implements ProOutsourcingOrderProductDetailService{

    /**
     * 查询委外订单-产品-物料
     * @param ids 产品id列表
     * @return 分组后的物料
     */
    @Override
    public List<ProOutsourcingOrderProductDetailGroupVo> getProductDetailInfoBy(List<Long> ids) {
        return baseMapper.getProductDetailInfoBy(ids);
    }
}
